package com.hyh.music.domain.domains;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * @author hyh
 * @version 1.0
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Consumer {

        private Integer id;

        private String username;

        private String password;

        private String  sex;

        private String phoneNum;

        private String email;

        @JsonFormat(pattern = "yyyy-MM-dd")
        @DateTimeFormat(pattern = "yyyy-MM-dd")
        private Date birth;

        private String introduction;

        private String location;

        private String avatar;

        private LocalDateTime createTime;

        private LocalDateTime updateTime;

}
